
// const { Sequelize, DataTypes } = require("sequelize");
const { STRING, INTEGER } = require('../types')

module.exports = (sequelize) => {
  const blood = sequelize.define(
    'blood',
    {// 在这里定义模型属性
      id: {
        type: INTEGER,
        primaryKey:true,
        autoIncrement:true,
        allowNull:false
      },
      time: {
        type: STRING,
      },
      type: {
        type: STRING,
      },
      group: {
        type: STRING,
      },
      username: {
        type: STRING,
      },
      userphone: {
        type: STRING,
      },
      card: {
        type: STRING,
      },
      age: {
        type: STRING,
      },
      volume: {
        type: STRING,
      },
      status: {
        type: STRING,
      },
      remark: {
        type: STRING,
      }
    },
    {
    tableName: "blood",//直接提供表名
    timestamps: false
   }
  );
  return blood
}
